import { req } from './axiosFun';


export const userLogin= (params) => { return req("post", "user_login", params) };

export const orderList = (params) => { return req("post", "order_list", params) };

export const orderAdd = (params) => { return req("post", "order_add", params) };

export const orderDel = (params) => { return req("post", "order_del", params) };

export const orderEdit = (params) => { return req("post", "order_edit", params) };

export const orderAllEdit = (params) => { return req("post", "order_alledit", params) };
export const orderAllDel = (params) => { return req("post", "order_alldel", params) };
export const orderiInfo  = (params) => { return req("post", "order_info", params) };
export const orderToXls  = (params) => { return req("post", "order_to_xls", params) };
export const orderListText= (params) => { return req("post", "order_list_text", params) };
export const orderListTextOld= (params) => { return req("post", "order_list_text_old", params) };



export const userAdd= (params) => { return req("post", "user_add", params) };

export const userEdit= (params) => { return req("post", "user_edit", params) };
export const userList= (params) => { return req("post", "user_list", params) };
export const userDel = (params) => { return req("post", "user_del", params) };
export const userInfo = (params) => { return req("post", "user_info", params) };



//果品和库存
export const categoryList  = (params) => { return req("post", "category_list", params) };

export const categoryAdd  = (params) => { return req("post", "category_add", params) };


export const categoryEdit  = (params) => { return req("post", "category_edit", params) };

export const categoryDel  = (params) => { return req("post", "category_Del", params) };


export const announcement_list_one  = (params) => { return req("post", "announcement_list_one", params) };

export const announcementAdd  = (params) => { return req("post", "announcement_add", params) };


export const sysInfo  = (params) => { return req("post", "sys_info", params) };

export const sysEdit  = (params) => { return req("post", "sys_edit", params) };
